
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import App from '@manager/App.vue'
import router from './router'
import store from './stores/index'
import indexedDB from '@/utils/indexedDB'

const app = createApp(App)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
(async ()=>{
    await indexedDB.init()
})();
app.use(store)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
